package com.zh.chat.util;

import com.zh.chat.entity.UserStatus;

public class Commons {
	public static String parseStatus(int status){
		String statusStr = null;
		switch (status) {
		case UserStatus.ONLINE:
			statusStr="在线";
			break;
		case UserStatus.BUSY:
			statusStr="忙碌";
			break;
		case UserStatus.AWAY:
			statusStr="离开";
			break;
		case UserStatus.HIDE:
			statusStr="隐身";
			break;
		case UserStatus.OUTLINE:
			statusStr="离线";
			break;
		default:statusStr="未知";
			break;
		}
		return statusStr;
	}
}
